<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>left</title>
    </h:head>
    <body>
        <ui:composition>
            <p:accordionPanel style="font-size: 11px" id="acc_Download">
                <p:tab title="Showcase">
                    <p:tree value="#{leftBean.root}" var="node" id="treeLeft" style="font-size: 13px" selectionMode="single">
                        <p:ajax event="select" update=":mainForm:tabView" listener="#{leftBean.onNodeSelect}"/>
                        <p:treeNode id="treeNodeLeft">
                            <h:outputText value="#{node.name}" id="lable">
                            </h:outputText>
                        </p:treeNode> 
                    </p:tree> 
                </p:tab>
                <p:tab title="Download" id="tabdownload">
                    <p:outputPanel id="pnlDownload">
                        <p:dataTable id="tableDownload" value="#{leftBean.funcDownload.libList}" var="library" selection="#{leftBean.funcDownload.lib}" rowKey="#{library.libID}" selectionMode="single">
                            <p:ajax event="rowSelect" process="@this" update="@parent" onsuccess="window.location ='/TLS_WSC_14/faces/download/download.xhtml'"/>
                            <p:column>
                                <h:outputText value="#{library.name}"/>
                            </p:column>
                        </p:dataTable>
                    </p:outputPanel>
                </p:tab>
               <p:tab title="Admin" id="tabAdmin" rendered="#{secuser.checkAdmin}">
                    <p:commandLink style="font-size: 11px;text-decoration:none;color:blue" value="Admin" onclick="window.open('modules/manager/admin/admin.xhtml')"></p:commandLink>
                </p:tab>
                <p:tab title="Training">
                </p:tab>
            </p:accordionPanel>
        </ui:composition>
    </body>
</html>
